import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App);
app.use(store).use(router).use(ElementPlus).mount('#app');
// app.config.errorHandler = (err,vm,info)=>{
//     try{
//         throw new Error(info);
//     }catch(err){
//         console.log(err);
//     }
// }

app.config.warnHandler = (err,vm,info)=>{
    try{
        throw new Error(info);
    }catch(err){
        console.log(err);
    }
}

